<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Card_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-card_name" data-rule="required" class="form-control" name="row[card_name]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Card_price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-card_price" data-rule="required" class="form-control" name="row[card_price]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Card_service_term_day')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-card_service_term_day" data-rule="required" class="form-control" name="row[card_service_term_day]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('适用教室')}:</label>
        <div class="col-xs-12 col-sm-8">
          <input id="c-store_ids" data-rule="required" data-source="room/index" data-multiple="true" data-field="room_name" data-format-item="{store_name} - {room_name}"  class="form-control selectpage" name="row[store_ids]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Card_total_hour')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-card_total_hour" class="form-control" name="row[card_total_hour]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Card_display')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-card_display" data-rule="required" class="form-control selectpicker" name="row[card_display]">
                {foreach name="cardDisplayList" item="vo"}
                    <option value="{$key}" {in name="key" value="1"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>
            <span class="mf_backend_field_note">只影响是否在小程序里显示，不影响大众美团的兑券</span>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Could_buy_number')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-could_buy_number" data-rule="required" class="form-control" name="row[could_buy_number]" type="number" value="0">
            <span class="mf_backend_field_note">此卡用户可以购买的次数，0表示不限制</span>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Card_note')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-card_note" class="form-control editor" rows="5" name="row[card_note]" cols="50"></textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Dzmt_dealgroupid')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-dzmt_dealgroupid" class="form-control" name="row[dzmt_dealgroupid]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-weigh" data-rule="required" class="form-control" name="row[weigh]" type="number" value="0">
            <span class="mf_backend_field_note">权重，数字越大会排前</span>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>

<style>
    .mf_backend_field_note {
        display: block;
        margin-top: 0.5rem;
        color: #838fa1;
        font-size: 1.2rem;
    }
</style>
